﻿@model ADShop.Models.Product

@{
    ViewBag.Title = "Delete";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutPage_Admin.cshtml";
}

<h2>Xóa Sản Phẩm @Model.NameProduct</h2>

<h3>Bạn có chắc chắn muốn xóa sản phẩm này ?</h3>
<fieldset>
    <legend>Product</legend>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.IDProduct) : @Html.DisplayFor(model => model.IDProduct)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.StatusProduct.NameStatus) : @Html.DisplayFor(model => model.StatusProduct.NameStatus)
    </div>


    <div class="display-label">
        @Html.DisplayNameFor(model => model.Category.NameCategory) : @Html.DisplayFor(model => model.Category.NameCategory)
    </div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.PromotionsProduct.IDPromotions) : @Html.DisplayFor(model => model.PromotionsProduct.IDPromotions)


        <div class="display-label">
            @Html.DisplayNameFor(model => model.Brand.BrandName) : @Html.DisplayFor(model => model.Brand.BrandName)
        </div>


        <div class="display-label">
            @Html.DisplayNameFor(model => model.NameProduct) : @Html.DisplayFor(model => model.NameProduct)
        </div>


        <div class="display-label">
            @Html.DisplayNameFor(model => model.Description) : @Html.DisplayFor(model => model.Description)
        </div>


        <div class="display-label">
            @Html.DisplayNameFor(model => model.TrialDay) : @Html.DisplayFor(model => model.TrialDay)
        </div>

        <div class="display-label">
            @Html.DisplayNameFor(model => model.ListedPrice) : @Html.DisplayFor(model => model.ListedPrice)
        </div>


        <div class="display-label">
            @Html.DisplayNameFor(model => model.PriceProduct) : @Html.DisplayFor(model => model.PriceProduct)
        </div>


        <div class="display-label">
            @Html.DisplayNameFor(model => model.Rewards) : @Html.DisplayFor(model => model.Rewards)
        </div>


        <div class="display-label">
            @Html.DisplayNameFor(model => model.ProductImage) : <br /> @if (Model.ProductImage == null)
                                                                    {
                                                                        <img width="152" height="152" src="http://www.wwubap.org/wp-content/uploads/2012/03/no-available-image.png" />
                                                                    }
                                                                    else
                                                                    {
                                                                        <img width="152" height="152" src="@Model.ProductImage" />
                                                                    }
        </div>

        <div class="display-label">
            @Html.DisplayNameFor(model => model.Active) : @Html.DisplayFor(model => model.Active)
        </div>
</fieldset>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    <p>
        <input type="submit" value="Xóa" class="btn btn-danger" /><br /><br />
        @Html.ActionLink("Quay Lại Danh Sách Sản Phẩm", "Index", null, new { @class = "label label-default" })
    </p>
}
